from . import bp_intetmediate
from db_connect import ConnMysqlSlave
from db_connect import ConnMysql
from .methods import Intermediate
from sanic import response

@bp_intetmediate.route('/add_type_product', methods=['POST'])
async def add_type_product(request):
    '''
    '''
    form_info = request.form
    product_id = form_info.get('product_id')
    product_type_id = form_info.get('product_type_id')

    result = await Intermediate(product_id, product_type_id).result()

    return response.json(result)



    



    

    

    